#ifndef __GUI_H
#define __GUI_H

#include "system.h" 


extern lv_style_t label2_style;                                                 //字体样式2
extern lv_style_t label3_style;                                                 //字体样式3
extern lv_obj_t *imgbtn[8];

extern lv_obj_t *current_app_obj_user;

extern lv_img_dsc_t bin_pic000;
extern lv_img_dsc_t bin_pic100;
extern lv_img_dsc_t bin_pic200;
extern lv_img_dsc_t bin_pic300;
extern lv_img_dsc_t bin_pic400;
extern lv_img_dsc_t bin_pic500;
extern lv_img_dsc_t bin_pic600;

extern lv_img_dsc_t bin_pic110;
extern lv_img_dsc_t bin_pic120;
extern lv_img_dsc_t bin_pic121;
extern lv_img_dsc_t bin_pic130;
extern lv_img_dsc_t bin_pic131;
extern lv_img_dsc_t bin_pic140;
extern lv_img_dsc_t bin_pic141;
extern lv_img_dsc_t bin_pic150;
extern lv_img_dsc_t bin_pic151;
extern lv_img_dsc_t bin_pic160;
extern lv_img_dsc_t bin_pic170;
extern lv_img_dsc_t bin_pic180;
extern lv_img_dsc_t bin_pic190;

extern lv_img_dsc_t bin_pic510;
extern lv_img_dsc_t bin_pic520;
extern lv_img_dsc_t bin_pic530;
extern lv_img_dsc_t bin_pic540;

extern lv_img_dsc_t bin_pic610;
extern lv_img_dsc_t bin_pic620;
extern lv_img_dsc_t bin_pic630;
extern lv_img_dsc_t bin_pic640;


/* ICON描述信息结构体 */
typedef struct
{
  lv_img_dsc_t *icon_img_fc;
	lv_img_dsc_t *icon_img_bc;
  const char *text_cn;
  lv_obj_t * (*app)(lv_obj_t *parent, void *user_data);
}icon_item;

void lv_gui_start(void);//UI界面

static void lv_create_icon_desktop(lv_obj_t *parent, icon_item *item, uint16_t icon_num, lv_event_cb_t icon_event_cb);
static void icon_obj_event_cb(lv_obj_t * obj, lv_event_t event);
void icon_obj_list_append(lv_obj_t *obj);

#endif






